package cn.t.dynamic.switcher.router;

import cn.t.dynamic.switcher.type.DataSourceType;

public class DataSourceWrapper {

    /**
     * 数据源的BeanName
     */
    private String key;

    /**
     * 数据源类型
     */
    private DataSourceType type;

    public DataSourceWrapper() {
    }

    public DataSourceWrapper(String key, DataSourceType type) {
        this.key = key;
        this.type = type;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public DataSourceType getType() {
        return type;
    }

    public void setType(DataSourceType type) {
        this.type = type;
    }
}
